﻿<?xml version="1.0" encoding="utf-8" ?>
<RegularExpressions>
  <RegularExpression>
    <Name>
      Chinese charactor
    </Name>
    <Value>
      [\u4e00-\u9fa5]
    </Value>
  </RegularExpression>
  <RegularExpression>
    <Name>
      Double byte charactor
    </Name>
    <Value>
      [^\x00-\xff]
    </Value>
  </RegularExpression>
  <RegularExpression>
    <Name>
      href="…"
    </Name>
    <Value>
      <![CDATA[
        href\s*=\s*(?:""(?<1>[^""]*)""|(?<1>\S+))
      ]]>
    </Value>
  </RegularExpression>
  <RegularExpression>
    <Name>
      Date mm-dd-yy
    </Name>
    <Value>
      <![CDATA[
        (?<month>\d?\d)[-/](?<day>\d?\d)[-/](?<year>\d+)
      ]]>
    </Value>
  </RegularExpression>
  <RegularExpression>
    <Name>
      Protocal and port number
    </Name>
    <Value>
      <![CDATA[
        (?<proto>\w+)://[^/]+?(?<port>:\d+)?/
      ]]>
    </Value>
  </RegularExpression>
  <RegularExpression>
    <Name>
      E-Mail
    </Name>
    <Value>
      <![CDATA[
        (?<name>\S+)@(?<domain>\S+)
      ]]>
    </Value>
  </RegularExpression>
  <RegularExpression>
    <Name>
      International phone numbers
    </Name>
    <Value>
      <![CDATA[
        \+\s\d{2}\s\d{2}\s\d{4}\s\d{4}
      ]]>
    </Value>
  </RegularExpression>
  <RegularExpression>
    <Name>
      XML Element
    </Name>
    <Value>
      <![CDATA[
        <(?<elementName>\w+)(\s+(?<paramName>[\w^"]+)="(?<paramValue>[^"]*)")*\s+/>
      ]]>
    </Value>
  </RegularExpression>
  <RegularExpression>
    <Name>
      URI
    </Name>
    <Value>
      <![CDATA[
        (?<protocol>http|ftp|https|file)://(?<domain>[\w\.]+)(?<path>/.*)?
      ]]>
    </Value>
  </RegularExpression>
  <!--<RegularExpression>
    <Name>
      Blank line
    </Name>
    <Value>
      n[s| ]*r
    </Value>
  </RegularExpression>
  <RegularExpression>
    <Name>
      HTML tag
    </Name>
    <Value>
      <![CDATA[
        /<(.*)>.*</1>|<(.*) />/
      ]]>
      </Value>
  </RegularExpression>
  <RegularExpression>
    <Name>
      Blank at front or end
    </Name>
    <Value>
      (^s*)|(s*$)
    </Value>
  </RegularExpression>
  <RegularExpression>
    <Name>
      Email adress
    </Name>
    <Value>
      w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*
    </Value>
  </RegularExpression>
  <RegularExpression>
    <Name>
      URL
    </Name>
    <Value>
      <![CDATA[
        http://([w-]+.)+[w-]+(/[w- ./?%&=]*)?
      ]]>
    </Value>
  </RegularExpression>-->
</RegularExpressions>
